function request(url, params){
	return new Promise((resolve, reject)=>{
		$.get(url, params, (res)=>{
			resolve(res);
		});
	});
};

// 获取省
exports.getProvinces = ()=>{
	return request("/location/getProvinces", {});
};

// 获取市
exports.getCities = (data)=>{
	return request("/location/getCities", data);
};

// 获取区
exports.getAreas = (data)=>{
	return request("/location/getAreas", data);
};